package org.zkoss.view.ctrl.renderer;



import org.zkoss.model.bean.Company;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;

public class CompanyListRenderer implements ListitemRenderer {

	public void render(Listitem item, Object data, int i) throws Exception {
		Company company = (Company) data;
		item.setValue(company);
		new Listcell(String.valueOf(company.getIdcompany())).setParent(item);
		new Listcell(company.getName()).setParent(item);
		new Listcell(company.getCountry()).setParent(item);
	}

	
}

